package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;

import java.util.LinkedHashSet;
import java.util.List;

public interface MenuDao {

    public List<Menu> findMenuparentMenuId();

    public Menu findFCMenuById(Integer id);

    public int findCountByLevel(int i);

    public void add(Menu menu);

    public Page<Menu> findByCondition(String queryString);

    public List<Menu> findByParentMenuId(Integer id);

    public Menu findById(Integer id);

    public Integer findParentIdById(Integer id);

    public List<Menu> findMenuIdAndDisabled(Integer id);

    public void edit(Menu menu);

    public void delete(Integer id);

    public Integer findRelationRoleCountByMenuId(Integer id);

    public LinkedHashSet<Menu> findByRoleId(Integer id);

    List<Menu> findAll();

    public Integer findMinPriorityByLevel(Integer level);
}
